package com.example.javagd;

import com.example.javagd.util.InitTableUtils;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(basePackages = {"com.example.javagd.mapper"})
@EnableAsync
@EnableScheduling
@EnableSwagger2
@ServletComponentScan
public class JavagdApplication {

    public static void main(String[] args) {
        InitTableUtils.Init();
        SpringApplication.run(JavagdApplication.class, args);
    }

}
